<?php echo \think\facade\View::fetch("public/header"); ?>

<div id="right">
    <div id="content">
        <div id="breadcrumb">
            <a href=index.php?c=article&a=index>首页</a> &gt;
            <a href=index.php?c=article&a=index>文章管理</a> &gt;
            <a href="index.php?c=article&a=add">增加文章</a>
        </div>
        <form action="/admin/article/addSave/" method="post">
            <table class="update">
                <tr>
                    <td>文章标题：</td>
                    <td><input type="text" name="article_title"/></td>
                </tr>
                <tr>
                    <td>所属分类：</td>
                    <td>
                        <select name="category_id">
                            <option value="0">请选择分类</option>
                            <?php foreach ($categoryList as $row): ?>
                                <option value="<?php echo $row['category_id']; ?>">
                                    <?php echo $row['category_name'] ?>
                                </option>
                            <?php endforeach; ?>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>文章简介：</td>
                    <td>
                        <textarea name="intro"></textarea>
                    </td>
                </tr>
                <tr>
                    <td>文章内容：</td>
                    <td>
                        <textarea name="content"></textarea>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <input type="submit" value="提交" class="btn"/>
                        <input type="reset" value="重置" class="btn"/>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>

<?php echo \think\facade\View::fetch("public/footer"); ?>